package com.cskaoyan;

import redis.clients.jedis.Jedis;

/**
 * 创建日期: 2021/12/03 15:26
 *
 * @author ciggar
 */
public class Main {

    public static void main(String[] args) {

        // 创建Jedis客户端
        Jedis jedis = new Jedis("127.0.0.1",6379);

        // 认证密码
        jedis.auth("cskaoyan");


        jedis.select(2);

        String name = jedis.get("name");

        System.out.println(name);


    }
}
